//
//  IDcardinfofViewController.m
//  Distributor
//
//  Created by 主事丫环 on 2019/5/10.
//  Copyright © 2019 主事丫环. All rights reserved.
//

#import "IDcardinfofViewController.h"

@interface IDcardinfofViewController ()
@property (weak, nonatomic) IBOutlet UILabel *nameLB;
@property (weak, nonatomic) IBOutlet UILabel *idcardLB;

@end

@implementation IDcardinfofViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self.leftbutton setImage:imgname(@"left_icon") forState:(UIControlStateNormal)];
    //    self.headerImage = [[UIImage alloc]init];
    self.title = @"身份证信息";
    self.view.backgroundColor = [UIColor colorWithHexString:@"#F2F2F2"];
    self.nameLB.text = _model.person;
    
    NSString *ste =[NSString stringWithFormat:@"%@",_model.id_card];
    
    if (ste.length >10) {
        NSString *str1 = [ste substringToIndex:ste.length-8];
        NSString *str2 = [ste substringFromIndex:ste.length-4];
        self.idcardLB.text =[NSString stringWithFormat:@"%@****%@",str1,str2];

    }
    // Do any additional setup after loading the view from its nib.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
